package com.etool.modules.auth.util;

import java.util.Map;
import java.util.Set;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;



public class loginUtil {
	public  static void  login(HttpServletRequest request,Map<String,Object> params)
	{
		HttpSession session=request.getSession();
		
		Set<Map.Entry<String, Object>> entry=params.entrySet();
		
		for(Map.Entry<String, Object> item:entry)
		{
			session.setAttribute(item.getKey(), item.getValue());
		}
	}
}
